package com.zretc.api.pojo.blogModule.pojos;


import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.util.Date;


@TableName("blog_comment")
public class BlogComment {

    private Long id;

    @TableField("blog_id")
    private Long blogId;

    @TableField("comment_Content")
    private String commentContent;

    @TableField("user_id")
    private Integer userId;

    @TableField("nick_name")
    private String nickName;

    @TableField("to_user_id")
    private Integer toUserId;

    @TableField("to_nick_name")
    private String toNickName;

    @TableField("root_id")
    private Long rootId;

    @TableField("is_deleted")
    private Integer isDeleted;

    public Integer getIsDeleted() {
        return isDeleted;
    }

    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    @TableField("create_time")
    private Date createTime;

    public BlogComment(){}

    public BlogComment(Long blogId,String commentContent){
        this.blogId = blogId;
        this.commentContent = commentContent;
    }

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public Long getBlogId() {
        return blogId;
    }

    public void setBlogId(Long blogId) {
        this.blogId = blogId;
    }

    public String getCommentContent() {
        return commentContent;
    }

    public void setCommentContent(String commentContent) {
        this.commentContent = commentContent;
    }

    public Integer getUserId() {
        return userId;
    }

    public void setUserId(Integer userId) {
        this.userId = userId;
    }

    public String getNickName() {
        return nickName;
    }

    public void setNickName(String nickName) {
        this.nickName = nickName;
    }

    public Integer getToUserId() {
        return toUserId;
    }

    public void setToUserId(Integer toUserId) {
        this.toUserId = toUserId;
    }

    public String getToNickName() {
        return toNickName;
    }

    public void setToNickName(String toNickName) {
        this.toNickName = toNickName;
    }

    public Long getRootId() {
        return rootId;
    }

    public void setRootId(Long rootId) {
        this.rootId = rootId;
    }

    public Date getCreateTime() {
        return createTime;
    }

    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "BlogComment{" +
                "id=" + id +
                ", blogId=" + blogId +
                ", commentContent='" + commentContent + '\'' +
                ", userId=" + userId +
                ", nickName='" + nickName + '\'' +
                ", toUserId=" + toUserId +
                ", toNickName='" + toNickName + '\'' +
                ", rootId=" + rootId +
                ", isDeleted=" + isDeleted +
                ", createTime=" + createTime +
                '}';
    }
}
